package com.kaili.basic.export;

import cn.afterturn.easypoi.entity.vo.NormalExcelConstants;
import com.kaili.basic.pojo.entity.BaseTransferExport;
import com.kaili.basic.service.BaseTransferManageService;
import com.kaili.basic.bean.Tools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * Created by renzhikun on 18-6-29.
 */
@ExportNotice(name = "中转商导出")
@Component
public class ExportTransfer  extends BaseExport{

    @Autowired
    private BaseTransferManageService transferManageService;
    @Override
    public HashMap doExport(HashMap parm) {
        HashMap ret = new HashMap();
        ret.put(NormalExcelConstants.CLASS, BaseTransferExport.class);
        parm = (HashMap) Tools.trimHashMap(parm);

        List<BaseTransferExport> list = transferManageService.queryTransferExport(parm);

        ret.put(NormalExcelConstants.DATA_LIST, list);
        return ret;
    }
}
